const crypto = require('crypto');

module.exports = {
  jiami(t) {
    //每个实例只能输出一次；
    const jiami = crypto.createHash('sha1');
    jiami.update(t);
    //输出16进制的密文
    return jiami.digest('hex');
  }
}